<template>
  <div>
      <more-maintenance-task v-if="$store.state.userinfo.isMuilUnitUser === 1" :organizationIds="$store.state.userinfo.organizationIds" :queryObj="parames"></more-maintenance-task>
      <single-maintenance-task v-else :organizationId="$store.state.userinfo.org.id" :queryObj="parames"></single-maintenance-task>
  </div>
</template>

<script>

import MoreMaintenanceTask from './Model/MoreMaintenanceTask'
import SingleMaintenanceTask from './Model/SingleMaintenanceTask'

export default {
  name: 'MaintenanceTask',
  props: {
    // parames: {
    //   default() {
    //     return false
    //   }
    // }
  },
  components: {
      MoreMaintenanceTask,
      SingleMaintenanceTask,
  },
  data () {
    return {
      parames:null
    }
  },
  created(){
    if(this.$route.params.level){
      this.parames= this.$route.params
    }
  },
  activated(){
    if(this.$route.params.level){
      this.parames= this.$route.params
    }
  },
  methods: {}
}

</script>

<style></style>
